package edu.uit.se.laps.web.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table (name = "taikhoan")
public class TaiKhoan implements Serializable{

	/**
	 * khong tao bat cu constructor nao
	 */
	private static final long serialVersionUID = -1797388383000804077L;
	
	private int idUser;
	private String email;
	private String password;
	private String hoTen;
	private boolean gioiTinh;
	//private String gioiTinh;
	private String dienThoai;
	private String diaChi;
	private Date ngayDangKi;
	private Date ngaySinh;
		
	@Id
	@GeneratedValue
	@Column (name = "idUser")
	public int getIdUser() {
		return idUser;
	}
	@Column (name = "Email")
	public String getEmail() {
		return email;
	}
	@Column (name = "Password")
	public String getPassword() {
		return password;
	}
	@Column (name = "HoTen")
	public String getHoTen() {
		return hoTen;
	}
	@Column (name = "GioiTinh")
//	public String getGioiTinh() {
//		return gioiTinh;
//	}
	public boolean isGioiTinh() {
		return gioiTinh;
	}
	@Column (name = "DienThoai")
	public String getDienThoai() {
		return dienThoai;
	}
	@Column (name = "DiaChi")
	public String getDiaChi() {
		return diaChi;
	}
	@Column (name = "NgayDangKi")
	public Date getNgayDangKi() {
		return ngayDangKi;
	}
	@Column (name = "NgaySinh")
	public Date getNgaySinh() {
		return ngaySinh;
	}
	
	
	
	public void setIdUser(int idUser) {
		this.idUser = idUser;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setHoTen(String hoTen) {
		this.hoTen = hoTen;
	}
//	public void setGioiTinh(String gioiTinh) {
//		this.gioiTinh = gioiTinh;
//	}
	public void setGioiTinh(boolean gioiTinh) {
		this.gioiTinh = gioiTinh;
	}
	public void setDienThoai(String dienThoai) {
		this.dienThoai = dienThoai;
	}
	public void setDiaChi(String diaChi) {
		this.diaChi = diaChi;
	}
	public void setNgayDangKi(Date ngayDangKi) {
		this.ngayDangKi = ngayDangKi;
	}
	public void setNgaySinh(Date ngaySinh) {
		this.ngaySinh = ngaySinh;
	}
	
	
}
